package com.shangs.platform.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 投票选项扩展
 * </p>
 *
 * @author shangs
 * @since 2017-10-26
 */
@TableName("cms_vote_item_attribute")
public class CmsVoteItemAttribute extends Model<CmsVoteItemAttribute> {

    private static final long serialVersionUID = 1L;

    /**
     * 选项ID
     */
    @TableId("vote_item_id")
	private Long voteItemId;
    /**
     * 数据JSON
     */
	private String data;


	public Long getVoteItemId() {
		return voteItemId;
	}

	public void setVoteItemId(Long voteItemId) {
		this.voteItemId = voteItemId;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	@Override
	protected Serializable pkVal() {
		return this.voteItemId;
	}

	@Override
	public String toString() {
		return "CmsVoteItemAttribute{" +
			"voteItemId=" + voteItemId +
			", data=" + data +
			"}";
	}
}
